/*
 * This is a function to test floating-point arguments
 * and return value.
 */
double power(int n, double base)
{
	double r = 1.0;
	while (n-- > 0)
		r *= base;
	return r;
}

double sqr(double base)
{
	return power(2, base);
}